package com.rogue.system.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rogue.common.mybatis.base.BaseEntity;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户角色表
 * @author YeahLiang
 * @TableName sys_role
 */
@TableName(value ="sys_role")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysRole extends BaseEntity implements Serializable {
    /**
     * 角色id
     */
    @TableId
    private Long id;

    /**
     * 角色名
     */
    private String roleName;

    /**
     * 角色编号
     */
    private String roleCode;

    /**
     * 角色描述
     */
    private String roleDesc;

    /**
     * 删除标识（0-正常,1-删除）
     */
    @TableField("is_deleted")
    @TableLogic
    private Integer deleted;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}